import request from '@/store/request'

// 获取信息
export function allPersong () {
  return request({
    url: 'profile/information',
    method: 'get',
    dataType: 'josn'
  })
}
// 修改密码
export function password (roleForms) {
  return request({
    url: 'profile/change-password',
    method: 'post',
    dataType: 'josn',
    data: {
      oldPassword: roleForms.oldpassword,
      newPassword: roleForms.password,
      passwordSecurityLevel: roleForms.level
    }
  })
}
// 修改邮箱
export function email (roleForms) {
  return request({
    url: 'profile/bind-email',
    method: 'post',
    dataType: 'josn',
    data: {
      email: roleForms.email
    }
  })
}
// 修改手机号码
export function mobile (roleForms) {
  return request({
    url: 'profile/bind-mobile',
    method: 'post',
    dataType: 'josn',
    data: {
      mobile: roleForms.mobile
    }
  })
}



// 提交提现申请
export function saveWithdrawCash (params) {
  return request({
    url: 'drawup/merchant',
    method: 'post',
    dataType: 'json',
    data: params
  })
}

// 修改企业基本你信息
export function updateProfile (params) {
  return request({
    url: 'profile/update',
    method: 'post',
    dataType: 'json',
    data: params
  })
}
